int getScore(char * s){
    int score=0;
    for(;*s;s++){
        switch(*s){
            case 'W':score+=3;break;
            case 'D':score++;break;
            case 'L':
            default:break;
        }
    }
    return score;
}

